<?php /* Smarty version 2.6.26, created on 2014-02-20 19:22:07
         compiled from admin/order/show.html */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="view/admin/style/basic.css" />
<link rel="stylesheet" type="text/css" href="view/admin/style/order.css" />
</head>
<body>

<h2>订单 -- 订单列表</h2>
<div id="list">
    <table>
        <tr><th>订单号</th><th>下单时间</th><th>总金额</th><th>订单状态</th><th>操作</th></tr>
        <?php $_from = $this->_tpl_vars['allOrder']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>    
        <tr><td><a href="?a=order&m=update&id=<?php echo $this->_tpl_vars['value']->id; ?>
"><?php echo $this->_tpl_vars['value']->ordernum; ?>
</a></td><td><?php echo $this->_tpl_vars['value']->date; ?>
</td><td><?php echo $this->_tpl_vars['value']->price; ?>
</td><td>
        <?php if ($this->_tpl_vars['value']->order_state == '已取消'): ?>
            <span style="color:red">已取消</span>
        <?php else: ?>
            <?php if ($this->_tpl_vars['value']->refund == 1): ?>
                <span style="color:#666">申请退款</span>
            <?php else: ?>
                <?php if ($this->_tpl_vars['value']->refund == 2): ?>
                <span style="color:green;">退款成功</span>
                <?php else: ?>
                    <?php if ($this->_tpl_vars['value']->order_delivery == '已发货'): ?>
                         <span style="color:green">已发货</span>
                    <?php else: ?>
                        <?php if ($this->_tpl_vars['value']->order_delivery == '已配货'): ?>
                            <span style="color:green">已配货,等待发货</span>
                        <?php else: ?>
                            <?php if ($this->_tpl_vars['value']->order_pay == '已付款'): ?>
                                <span style="color:green">已付款</span>
                            <?php else: ?>
                                <?php if ($this->_tpl_vars['value']->order_state == '已确认'): ?>
                                    <span style="color:green">已确认，等到收款</span>
                                <?php else: ?>
                                    <span style="color:#666">未确认</span>
                                <?php endif; ?>
                            <?php endif; ?>
                        <?php endif; ?>
                    <?php endif; ?>
                <?php endif; ?>    
            <?php endif; ?>
        <?php endif; ?>
        </td><td> <a href="?a=order&m=update&id=<?php echo $this->_tpl_vars['value']->id; ?>
"><img src="view/admin/images/edit.gif" alt="编辑" title="编辑"/></a> <a href="?a=order&m=delete&id=<?php echo $this->_tpl_vars['value']->id; ?>
"><img src="view/admin/images/drop.gif" alt="删除" title="删除" onclick="return confirm('确认删除?') ? true : false;"/></a></td></tr>
        <?php endforeach; else: ?>
        <tr><td colspan="5">没有任何数据</td></tr>
        <?php endif; unset($_from); ?>
    </table>
</div>
<div id="page"><?php echo $this->_tpl_vars['page']; ?>
 <input type="button" onclick="location.href='?a=order&m=clear'" value="清理24小时未确认订单"/><span style="color:red;">(*订单清理条件：未确认并且未发货并且未付款)</span></div>
</body>
</html>